//----------------------------------------------------------------------- 
// PDS WITSMLstudio Store, 2018.3
//
// Copyright 2018 PDS Americas LLC
// 
// Licensed under the PDS Open Source WITSML Product License Agreement (the
// "License"); you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//   
//     http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
// 
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//-----------------------------------------------------------------------

// ----------------------------------------------------------------------
// <auto-generated>
//     Changes to this file may cause incorrect behavior and will be lost
//     if the code is regenerated.
// </auto-generated>
// ----------------------------------------------------------------------

using Energistics.DataAccess;
using Energistics.DataAccess.WITSML200;
using Energistics.DataAccess.WITSML200.ComponentSchemas;
using Energistics.DataAccess.WITSML200.ReferenceData;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace PDS.WITSMLstudio.Store.Data.ChannelSets
{
    [TestClass]
    public partial class ChannelSet200StoreTests : ChannelSet200TestBase
    {
        public ChannelSet200StoreTests()
            : base(false)
        {
        }

        [TestMethod]
        public void ChannelSet200DataAdapter_GetFromStore_Can_Get_ChannelSet()
        {
            AddParents();
            DevKit.AddAndAssert(ChannelSet);
            DevKit.GetAndAssert(ChannelSet);
       }

        [TestMethod]
        public void ChannelSet200DataAdapter_AddToStore_Can_Add_ChannelSet()
        {
            AddParents();
            DevKit.AddAndAssert(ChannelSet);
        }

        [TestMethod]
        public void ChannelSet200DataAdapter_UpdateInStore_Can_Update_ChannelSet()
        {
            AddParents();
            DevKit.AddAndAssert(ChannelSet);
            DevKit.UpdateAndAssert(ChannelSet);
            DevKit.GetAndAssert(ChannelSet);
        }

        [TestMethod]
        public void ChannelSet200DataAdapter_DeleteFromStore_Can_Delete_ChannelSet()
        {
            AddParents();
            DevKit.AddAndAssert(ChannelSet);
            DevKit.DeleteAndAssert(ChannelSet);
            DevKit.GetAndAssert(ChannelSet, isNotNull: false);
        }
    }
}